﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011EB RID: 4587
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StageMergedScore : IMessage<StageMergedScore>, IMessage, IEquatable<StageMergedScore>, IDeepCloneable<StageMergedScore>, IBufferMessage
	{
		// Token: 0x17003A16 RID: 14870
		// (get) Token: 0x0600CD78 RID: 52600 RVA: 0x0022981D File Offset: 0x00227A1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StageMergedScore> Parser
		{
			get
			{
				return StageMergedScore._parser;
			}
		}

		// Token: 0x17003A17 RID: 14871
		// (get) Token: 0x0600CD79 RID: 52601 RVA: 0x00229824 File Offset: 0x00227A24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StageMergedScoreReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A18 RID: 14872
		// (get) Token: 0x0600CD7A RID: 52602 RVA: 0x00229836 File Offset: 0x00227A36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StageMergedScore.Descriptor;
			}
		}

		// Token: 0x0600CD7B RID: 52603 RVA: 0x0022983D File Offset: 0x00227A3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StageMergedScore()
		{
		}

		// Token: 0x0600CD7C RID: 52604 RVA: 0x00229845 File Offset: 0x00227A45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StageMergedScore(StageMergedScore other) : this()
		{
			this.maxScore_ = other.maxScore_;
			this.dJOKADMHDHI_ = other.dJOKADMHDHI_;
			this.levelId_ = other.levelId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CD7D RID: 52605 RVA: 0x00229882 File Offset: 0x00227A82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StageMergedScore Clone()
		{
			return new StageMergedScore(this);
		}

		// Token: 0x17003A19 RID: 14873
		// (get) Token: 0x0600CD7E RID: 52606 RVA: 0x0022988A File Offset: 0x00227A8A
		// (set) Token: 0x0600CD7F RID: 52607 RVA: 0x00229892 File Offset: 0x00227A92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxScore
		{
			get
			{
				return this.maxScore_;
			}
			set
			{
				this.maxScore_ = value;
			}
		}

		// Token: 0x17003A1A RID: 14874
		// (get) Token: 0x0600CD80 RID: 52608 RVA: 0x0022989B File Offset: 0x00227A9B
		// (set) Token: 0x0600CD81 RID: 52609 RVA: 0x002298A3 File Offset: 0x00227AA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DJOKADMHDHI
		{
			get
			{
				return this.dJOKADMHDHI_;
			}
			set
			{
				this.dJOKADMHDHI_ = value;
			}
		}

		// Token: 0x17003A1B RID: 14875
		// (get) Token: 0x0600CD82 RID: 52610 RVA: 0x002298AC File Offset: 0x00227AAC
		// (set) Token: 0x0600CD83 RID: 52611 RVA: 0x002298B4 File Offset: 0x00227AB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LevelId
		{
			get
			{
				return this.levelId_;
			}
			set
			{
				this.levelId_ = value;
			}
		}

		// Token: 0x0600CD84 RID: 52612 RVA: 0x002298BD File Offset: 0x00227ABD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StageMergedScore);
		}

		// Token: 0x0600CD85 RID: 52613 RVA: 0x002298CC File Offset: 0x00227ACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StageMergedScore other)
		{
			return other != null && (other == this || (this.MaxScore == other.MaxScore && this.DJOKADMHDHI == other.DJOKADMHDHI && this.LevelId == other.LevelId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CD86 RID: 52614 RVA: 0x00229928 File Offset: 0x00227B28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MaxScore != 0U)
			{
				num ^= this.MaxScore.GetHashCode();
			}
			if (this.DJOKADMHDHI != 0U)
			{
				num ^= this.DJOKADMHDHI.GetHashCode();
			}
			if (this.LevelId != 0U)
			{
				num ^= this.LevelId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CD87 RID: 52615 RVA: 0x00229999 File Offset: 0x00227B99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CD88 RID: 52616 RVA: 0x002299A1 File Offset: 0x00227BA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CD89 RID: 52617 RVA: 0x002299AC File Offset: 0x00227BAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.LevelId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.LevelId);
			}
			if (this.DJOKADMHDHI != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.DJOKADMHDHI);
			}
			if (this.MaxScore != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.MaxScore);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CD8A RID: 52618 RVA: 0x00229A24 File Offset: 0x00227C24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MaxScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxScore);
			}
			if (this.DJOKADMHDHI != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DJOKADMHDHI);
			}
			if (this.LevelId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LevelId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CD8B RID: 52619 RVA: 0x00229A94 File Offset: 0x00227C94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StageMergedScore other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MaxScore != 0U)
			{
				this.MaxScore = other.MaxScore;
			}
			if (other.DJOKADMHDHI != 0U)
			{
				this.DJOKADMHDHI = other.DJOKADMHDHI;
			}
			if (other.LevelId != 0U)
			{
				this.LevelId = other.LevelId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CD8C RID: 52620 RVA: 0x00229AF8 File Offset: 0x00227CF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CD8D RID: 52621 RVA: 0x00229B04 File Offset: 0x00227D04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 80U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.MaxScore = input.ReadUInt32();
						}
					}
					else
					{
						this.DJOKADMHDHI = input.ReadUInt32();
					}
				}
				else
				{
					this.LevelId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005270 RID: 21104
		private static readonly MessageParser<StageMergedScore> _parser = new MessageParser<StageMergedScore>(() => new StageMergedScore());

		// Token: 0x04005271 RID: 21105
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005272 RID: 21106
		public const int MaxScoreFieldNumber = 15;

		// Token: 0x04005273 RID: 21107
		private uint maxScore_;

		// Token: 0x04005274 RID: 21108
		public const int DJOKADMHDHIFieldNumber = 10;

		// Token: 0x04005275 RID: 21109
		private uint dJOKADMHDHI_;

		// Token: 0x04005276 RID: 21110
		public const int LevelIdFieldNumber = 6;

		// Token: 0x04005277 RID: 21111
		private uint levelId_;
	}
}
